package cn.owen.config;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 自定义token
 * @author fanqinglong
 *
 */
public class CustomizedToken extends UsernamePasswordToken {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5896761092488981486L;
	//登录类型，判断是普通用户登录，教师登录还是管理员登录 
	private String loginType; 
	
	public CustomizedToken(final String username, final String password,String loginType) { 
		super(username,password); 
		this.loginType = loginType; 
	} 
	
	public String getLoginType() { 
		return loginType; 
	} 
	
	public void setLoginType(String loginType) { 
		this.loginType = loginType; 
	}
}
